package com.itheima.service;

import com.itheima.dao.UserMapper;
import com.itheima.daomain.User;
import com.itheima.util.SessionFactoryUtils;
import org.apache.ibatis.session.SqlSession;

import javax.servlet.ServletRequest;
import java.util.List;

/**
 * @Descriptionn:test
 * @Create by:依然
 * @Date:2021/11/4 9:12
 */
public class UserpageService {
    public List<User> pages(int id) {
        System.out.println("UserpageService:" + id);
        SqlSession session = SessionFactoryUtils.getSession();
        UserMapper userMapper = session.getMapper(UserMapper.class);
        List<User> selectpage = userMapper.selectpage(id);
        System.out.println("sssssss" + selectpage);
        return selectpage;
    }
}
